# Contributor: Jonny Gerold <fsk141@gmail.com>

pkgname=xmlrpc-c-svn
pkgver=1783
pkgrel=1
pkgdesc="Programming library for writing an XML-RPC server or client in C or C++."
arch=('i686' 'x86_64')
url="http://xmlrpc-c.sourceforge.net"
license=('BSD')
makedepends=('curl' 'w3c-libwww' 'subversion')
conflicts=('xmlrpc-c')
provides=('xmlrpc-c')
source=()
md5sums=()

_svntrunk=https://xmlrpc-c.svn.sourceforge.net/svnroot/xmlrpc-c/trunk
_svnmod=xmlrpc-c

build() {
	cd $startdir/src

	svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod

	msg "SVN checkout done or server timeout"
	msg "Starting make..."

	cd $_svnmod

	./configure --prefix=/usr --disable-cplusplus
	make || return 1
	make DESTDIR=$startdir/pkg install
}
